package com.baipiao.permission.backend.comm.columns;

import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.baipiao.permission.backend.entity.sys.UserEntity;
import com.baipiao.permission.backend.util.CustomColumns;

public class UserEntityColumns {

    /**
     * 返回一般信息，不包括管敏感信息
     */
    public static SFunction<UserEntity, ?>[] getGeneralInfo() {
        return CustomColumns.getColumns(
                UserEntity::getNames,
                UserEntity::getAccount,
                UserEntity::getAbout,
                UserEntity::getPhone,
                UserEntity::getEmail,
                UserEntity::getBirthDate
        );
    }

}
